package com.yz.xyt.domain.vo;

import com.yz.xyt.constant.Constants;
import com.yz.xyt.domain.Major;

public class MajorVo extends Major {

    private Integer pageSize;

    private Integer pageNumber;

    private String dname;

    public Integer getPageSize() {
        return pageSize = "".equals(pageSize) || pageSize == null ? Constants.DEFAULT_PAGE_SIZE : pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNumber() {
        return pageNumber = "".equals(pageNumber) || pageNumber ==null ? Constants.DEFAULT_PAGE_NUMBER : pageNumber;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    @Override
    public String toString() {
        return "MajorVo{" +
                "pageSize=" + pageSize +
                ", pageNumber=" + pageNumber +
                ", dname='" + dname + '\'' +
                '}';
    }
}
